import { createRouter, createWebHashHistory } from 'vue-router'
import indexpage from '@/views/indexpage.vue'
import mtydpage from '@/views/mtydpage.vue'
import activity from '@/views/activity/index.vue'
import loading from '@/views/activity/loading.vue'
import anchorpage from '@/views/anchorpage.vue'
import jktest from '../views/paytest/index.vue'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/firstexposure'
    },
    {
      path: '/firstexposure',
      name: 'indexpage',
      component: indexpage
    },
    {
      path:'/mtydpage',
      name: 'mtydpage',
      component: mtydpage
    },
    {
      path:'/activity',
      name: 'activity',
      component: activity
    },
    {
      path:'/loading',
      name: 'loading',
      component: loading
    },
    {
      path:'/jktest',
      name: 'jktest',
      component: jktest
    },
    {
      path: '/anchorpage',
      name: 'anchorpage',
      component: anchorpage
    }
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (About.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import('../views/AboutView.vue')
    // }
  ]
})

export default router
